﻿using System.Data.Entity.ModelConfiguration;

namespace CS795.TravelAgency.Flight.Domain.Entities.Configurations
{
    public class UserConfiguration : EntityTypeConfiguration<User>
    {
        public UserConfiguration()
        {
            HasKey(p => p.Id);
            Property(p => p.Name).HasMaxLength(25).IsRequired();
            Property(p => p.Salt).HasMaxLength(50).IsRequired();
            Property(p => p.Password).HasMaxLength(100).IsRequired();
        }
    }
}
